package com.ws.gold;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@MapperScan(basePackages = "com.ws.gold.mapper")
public class GoldApplication {

    public static void main(String[] args) {
        SpringApplication.run(GoldApplication.class, args);
//        SpringApplication app = new SpringApplication(GoldApplication.class);
//        app.setHeadless(false);
//        ApplicationContext context = app.run(args);
//
//        SwingUtilities.invokeLater(() -> {
//            RealtimeGoldPriceService service = context.getBean(RealtimeGoldPriceService.class);
//            ChartWindow window = new ChartWindow(service);
//            window.setVisible(true);
//        });
    }

}
